<?php require '../public/system/headers/headers.php';?>
<?php echo $this->headLink()->appendStylesheet($this->websiteUrl . 'system/css/seotoaster.css'); ?>
<?php echo $this->headScript()->appendFile($this->websiteUrl . 'system/js/jquery/jquery.js'); ?>
<script>
    /**
     * Animation for 'help' div
     */
    $(document).ready(function(){
        $('fieldset span').click(
            function(){
                if('block' == $(this).next('.info').css('display')) $(this).next('.info').slideUp();
                else {
                var pos = $(this).parent().find('textarea').position();
                var wid = $(this).parent().find('textarea').width();
                var hei = $(this).parent().find('textarea').height()+5;
                $(this).next('.info')
                                     .width(wid)
                                     .height(hei)
                                     .slideDown();
                }
            });
            $('.info').click(
                function(){
                    $(this).slideUp();
            });
    });
</script>
<div id="seotoaster" class="templatesconfig">
<div class="admineditwhat">{%Templates edit%} </div>
<div class="close_window" onclick="parent.tb_remove();"></div>
<?php if ($this->update) : ?>
<div id="message" class="errors" style="background-color:green;" onclick="this.style.display='none';">{%Configuration updated%}.</div>
<?php endif; ?>
<div id="list_images"></div>
<form action="<?php echo $this->websiteUrl; ?>sys/backend_shopping/templates/" name="saveconfig" id="saveconfig" method="post" enctype="multipart/form-data">
    <div class="block1">
        <h2 style="text-align: center;">{%Display templates%}</h2>
    	
        <div style="float:left;width:100%; margin:5px 0px; position:relative;">
        <fieldset><legend>{%Template for product Page%}:</legend>
        <span style="float:right;cursor:pointer;font-weight:bold;margin-right:5px;">{%help%}</span>
        <!-- help div -->
        <div class="info">
            <div>
                <p>{photo} - {%photo%}</p>
                <p>{name} - {%name%}</p>
                <p>{price} - {%price%}</p>
                <p>{weight} - {%weight%}</p>
                <p>{itemid} - {%itemID%}</p>
                <p>{addtocart} - {%add to cart%} </p>
                <p>{editproduct} - {%edit product%}</p>
            </div>
            <div>
                <p>{zoomimage} - {%zoom image%}</p>
                <p>{description} - {%description%}</p>
                <p>{options} - {%Option name : option,option,etc%}.</p>
                <p>{related} - {%related products%}</p>
                <p>{categories} - {%categories%}</p>
                <p>{url} - {%Product page url%}</p>
            </div>
        </div>
        <!--  end help div -->

        <textarea name="template-product" id="template-product" ><?php echo $this->shoppingConfig['template_product']; ?></textarea>
        </fieldset>
        </div>
        <div style="float:left;width:100%; margin:5px 0px;">
            <fieldset><legend>{%Template for product listings%}:</legend>
            <span style="float:right;cursor:pointer;font-weight:bold;margin-right:5px;">{%help%}</span>
            <!-- help div -->
            <div class="info">
                <div>
                    <p>{photo} - {%photo%}</p>
                    <p>{name} - {%name%}</p>
                    <p>{price} - {%price%}</p>
                    <p>{weight} - {%weight%}</p>
                    <p>{itemid} - {%itemID%}</p>
                    <p>{addtocart} - {%add to cart%} </p>
                    <p>{editproduct} - {%edit product%}</p>
                </div>
                <div>
                    <p>{zoomimage} - {%zoom image%}</p>
                    <p>{description} - {%description%}</p>
                    <p>{options} - {%Option name : option,option,etc%}.</p>
                    <p>{related} - {%related products%}</p>
                    <p>{categories} - {%categories%}</p>
                    <p>{url} - {%Product page url%}</p>
                </div>
            </div>
            <!--  end help div -->
            <p><textarea name="template-prod-list" id="template-prod-list"><?php echo $this->shoppingConfig['template_prod_list']; ?></textarea></p>
            </fieldset>
        </div>
        

    </div><!-- .block1 -->
    <div class="block2">

        <h2 style="text-align: center;">{%Quotes Email Templates%}</h2>
        
            <div style="float:left;width:100%; margin:5px 0px; position:relative;">
                
                <fieldset><legend>{%Quote Request Auto-Responder%}</legend>
                    <span style="float:right;cursor:pointer;font-weight:bold;margin-right:5px;">{%help%}</span>
                    <!-- help div -->
                    <div class="info">
                        <p>{%Note: left fields blank to use default templates%}</p>
                        <p>{$name} - {%name of user%}</p>
                        <p>{$date} - {%current date%}</p>
                    </div>
                    <!-- help div -->
                    <label>{%Subject%}:</label>
                    <input type="text" name="quote-auto-responder-subject" id="quote-auto-responder-subject" value="<?php echo $this->shoppingConfig['quote_responder_subj']; ?>"/>
                    
                    <p><label>{%Body%}:</label></p>
                    <textarea name="quote-auto-responder-body" id="quote-auto-responder-body"><?php echo $this->shoppingConfig['quote_responder_body']; ?></textarea>

                </fieldset>
                
            </div>
            <div style="float:left;width:100%; margin:5px 0px; position:relative;">
                <fieldset><legend>{%Quote Email%}</legend>
                <span style="float:right;cursor:pointer;font-weight:bold;margin-right:5px;">{%help%}</span>
                    <!-- help div -->
                    <div class="info">
                        <p>{%Note: left fields blank to use default templates%}</p>
                        <p>{$name} - {%name of user%}</p>
                        <p>{$date} - {%current date%}</p>
                        <p>{$quote_url} - {%quote preview url%}</p>
                    </div>
                    <!--  end help div -->
                <p>
                    <label>{%Subject%}:</label>
                    <input type="text" name="quote-email-subject" id="quote-email-subject" value="<?php echo $this->shoppingConfig['quote_email_subj']; ?>"/>
                </p>
                <p>
                    <label>{%Body%}:</label>
                    <textarea name="quote-email-body" id="quote-email-body"><?php echo $this->shoppingConfig['quote_email_body']; ?></textarea>
                </p>
                </fieldset>
            </div>
        
    </div><!-- .block2 -->
   	<input type="submit" name="submit" value="{%Save%}" class="formsubmit"/>

</form>

</div>